home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 5 / BBS in a Box -Volume V (BBS in a Box) (April 1992).iso / Files / Prog / M / Mac gperf 1.9.cpt / Mac gperf 1.9 / src / hashtable.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-03-09  |  1.3 KB  |  40 lines  |  [TEXT/KAHL]

  1. /* Hash table used to check for duplicate keyword entries.
  2.  
  3.    Copyright (C) 1989 Free Software Foundation, Inc.
  4.    written by Douglas C. Schmidt (schmidt@ics.uci.edu)
  5.  
  6. This file is part of GNU GPERF.
  7.  
  8. GNU GPERF is free software; you can redistribute it and/or modify
  9. it under the terms of the GNU General Public License as published by
  10. the Free Software Foundation; either version 1, or (at your option)
  11. any later version.
  12.  
  13. GNU GPERF is distributed in the hope that it will be useful,
  14. but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16. GNU General Public License for more details.
  17.  
  18. You should have received a copy of the GNU General Public License
  19. along with GNU GPERF; see the file COPYING.  If not, write to
  20. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  21.  
  22. #ifndef _hashtable_h
  23. #define _hashtable_h
  24. #define _H_hashtable
  25.  
  26. #include "keylist.h"
  27. #include "prototype.h"
  28.  
  29. typedef struct hash_table 
  30. {
  31.     LIST_NODE **    table;        /* Vector of pointers to linked lists of List_Node's. */
  32.     int                size;        /* Size of the vector. */
  33. } HASH_TABLE;
  34.  
  35. extern void            hash_table_init( int size );
  36. extern void            hash_table_destroy( void );
  37. extern LIST_NODE *    retrieve( LIST_NODE * item, int ignore_length );
  38.  
  39. #endif /* _hashtable_h */
  40.